package site.mmda.vo;

/**
 * @author 廉壮
 * @version 1.0
 * @date 2024-05-29 10:35
 */
public class ResponseResult {

    private String status;
    private Object data;
    private String message;

    public static ResponseResult success(Object data) {
        ResponseResult success = new ResponseResult("200", data, "成功");
        return success;
    }

    public ResponseResult() {
    }

    public ResponseResult(String status, Object data, String message) {
        this.status = status;
        this.data = data;
        this.message = message;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Object getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
